package com.qianfeng.smartplatform.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.qianfeng.smartplatform.constans.ResultCode;
import com.qianfeng.smartplatform.valigroup.Insert;
import com.qianfeng.smartplatform.valigroup.Select;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class SysCategory {

    @NotNull(groups = {Select.class}, message = "{\"code\": " + ResultCode.PARAM_CONTENT_EMPTY + ",\"msg\": \"没有传递id\"}")
    private long cId;
    @NotEmpty(groups = {Insert.class}, message = "{\"code\": " + ResultCode.PARAM_CONTENT_EMPTY + ",\"msg\": \"没有传递分类名称\"}")
    private String categoryName;
    private String txCommand;
    private String rxCommand;
    private String commandName;
    private long status;
    @JsonIgnore
    private java.util.Date createTime;
    @JsonIgnore
    private String createBy;
    @JsonIgnore
    private java.util.Date updateTime;
    @JsonIgnore
    private String updateBy;


    public long getCId() {
        return cId;
    }

    public void setCId(long cId) {
        this.cId = cId;
    }


    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }


    public String getTxCommand() {
        return txCommand;
    }

    public void setTxCommand(String txCommand) {
        this.txCommand = txCommand;
    }


    public String getRxCommand() {
        return rxCommand;
    }

    public void setRxCommand(String rxCommand) {
        this.rxCommand = rxCommand;
    }


    public String getCommandName() {
        return commandName;
    }

    public void setCommandName(String commandName) {
        this.commandName = commandName;
    }


    public long getStatus() {
        return status;
    }

    public void setStatus(long status) {
        this.status = status;
    }


    public java.util.Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(java.sql.Timestamp createTime) {
        this.createTime = createTime;
    }


    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }


    public java.util.Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(java.sql.Timestamp updateTime) {
        this.updateTime = updateTime;
    }


    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

}
